﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucRegister.ascx.cs" Inherits="controls_ucRegister" %>
<asp:HiddenField runat="server" ID="pageToRedirect" />
<asp:UpdatePanel runat="server" ID="upd1">
    <ContentTemplate>
        <table width="400px" style="height: 100px;" cellspacing="0" cellpadding="0" border="0">
            <tr align="center">
                <td align="center">
                    <table>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label runat="server" ID="lblClientSection" CssClass="Order" Text="Client Nou"
                                    Font-Bold="true" ForeColor="Black" Font-Size="x-Small"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">
                                <asp:RadioButtonList runat="server" ID="rbList" AutoPostBack="true" OnSelectedIndexChanged="rbList_OnSelectedIndexChanged"
                                    RepeatDirection="Horizontal" CssClass="label">
                                    <asp:ListItem Text="Persoana juridica" Value="0" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="Persoana fizica" Value="1"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lblClientName" Text="Denumire Societate" CssClass="label"
                                    Width="150px"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtClientName" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lblPersContact" Text="Persoana de contact" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtPersContact" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lblCNP" Text="CNP" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtCNP" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label4" Text="Adresa" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtClientAddress" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label5" Text="Judetul" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlCounty" CssClass="label" OnSelectedIndexChanged="ddlCounty_SelectedIndexChanged"
                                    AutoPostBack="true" Width="155px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label6" Text="Orasul" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtCity" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label7" Text="Banca" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtBank" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label8" Text="Cont" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtCont" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label9" Text="Telefon fix" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtPhone" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label10" Text="Telefon mobil" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtMobile" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label11" Text="Email" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtEmail" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lblCUI" Text="CUI" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtCUI" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lblRegCom" Text="Nr.Reg.Com" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtRegCom" CssClass="label" Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">
                                <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2" ValidationExpression="([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})"
                                    ControlToValidate="txtEmail" ErrorMessage="Introduceti o adresa valida" CssClass="labelTitle"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label runat="server" ID="Label14" CssClass="Order" Text="Utilizator Nou" Font-Bold="true"
                                    ForeColor="Black" Font-Size="x-Small"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label15" Text="Utilizator" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtUser" CssClass="label" Width="150px"></asp:TextBox><br />
                                <asp:LinkButton runat="server" ID="LinkButton1" OnClick="lnkBtnError_Click" Text="Exista utilizatorul?"
                                    CssClass="label"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">
                                <asp:Label runat="server" ID="lblErrorUser" Visible="false" CssClass="labelError"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label17" Text="Parola" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtPassword" CssClass="label" TextMode="Password"
                                    Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="Label18" Text="Repetare Parola" CssClass="label"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtRePassword" CssClass="label" TextMode="Password"
                                    Width="150px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 30px;" valign="bottom">
                            <td colspan="2" align="center">
                                <asp:CheckBox Text="Sunt de acord cu " runat="server" ID="chkAcord" CssClass="label" />
                                <asp:HyperLink runat="server" ID="hypcheckAcord" Text="Termeni si conditii" NavigateUrl="~/TermeniConditii.aspx"
                                    CssClass="label"></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">
                                <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3" ValidationExpression="\b\w{5,15}\b"
                                    ControlToValidate="txtUser" ErrorMessage="Introduceti intre 5 si 15 caractere"
                                    CssClass="labelTitle">
                                </asp:RegularExpressionValidator>
                                <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator4" ValidationExpression="\b\w{5,15}\b"
                                    ControlToValidate="txtPassword" ErrorMessage="Introduceti intre 5 si 15 caractere"
                                    CssClass="labelTitle"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txtPassword"
                                    ErrorMessage="Introduceti o parola" CssClass="labelTitle"></asp:RequiredFieldValidator>
                                <asp:CompareValidator runat="server" ID="CompareValidator1" ControlToCompare="txtPassword"
                                    ControlToValidate="txtRePassword" ErrorMessage="Parolele introduse nu coincid"
                                    CssClass="label"></asp:CompareValidator>
                                <asp:Label runat="server" ID="lblError" Text="Confirmati ca sunteti de acord cu Termeni si Conditii"
                                    CssClass="labelTitle" Visible="false"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <br />
                                <asp:Button runat="server" ID="Button1" Text="Creaza cont" CssClass="label" OnClick="btnSave_Click"
                                    BackColor="Transparent" BorderStyle="None" Font-Bold="true" Font-Size="Small"
                                    ForeColor="Black" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label runat="server" ID="Label19" Text="Datele dvs. vor ramane confidentiale, nu vor fi distribuite unei terte parti."
                                    CssClass="footerMessage"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
